<template>
	<view>
		<view class="head">
			<u-search placeholder="日照香炉生紫烟" :showAction="false" v-model="keyword"></u-search>
		</view>
		
		<view class="tabs">
			 <u-tabs :list="list1" @click="click" :activeStyle="{
							color: '#3681F3',
							fontWeight: 'bold',
							transform: 'scale(1.05)'
						}"
						:inactiveStyle="{
							color: '#999999',
							transform: 'scale(1)',
						}"
						itemStyle="padding:0 18px; height: 34px;"></u-tabs>
		</view>
		<view class="dingdan">
			<view class="diaodian" v-for="item of 3" :key="" @click="jlbDetail">
				<view class="diaoyu">
					<view class="le">
						<image class="headPhoto" src="../../static/logo.png" mode=""></image>
						<view class="name">用户名称</view>
					</view>
					<view class="state">待核销</view>

				</view>
				<view class="buy">购买时间：<span style="color: #333;">2024-01-15 14:25:36</span></view>
				<view class="info">
					<view class="buy">购买时间：<span>2024-01-15 14:25:36</span></view>
					<view class="brood">打窝：<span style="color: #3681F3;">0/3</span></view>
					
				</view>
				
				<view class="gn">
					<view class="" v-if="" style="border: none;">
						
					</view>
					<view @click="dawo">查看打窝</view>
					<view @click="refund">取消订单</view>
					<view @click="goOrder">查看订单</view>
					<view @click.stop="goBrood" style="background-color: #3681F3; color: #fff;">去打窝</view>
				</view>
				
				</view>
				
		</view>
			
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword:'',
				list1:[
					{name:'全部'},
					{name:'待核销'},
					{name:'待打窝'},
					{name:'已完成'},
					{name:'售后'},
				],
				current:0,
				show3: false,
				value3: Number(new Date()),
			};
		},
		methods:{
			dawo(){
				uni.navigateTo({
					url:('/pages/index/brood')
				})
			},
			refund(){
				uni.navigateTo({
					url:('/pages/index/refund')
				})
			},
			goBrood(){
				uni.navigateTo({
					url:('/pages/myReservoir/reservoirBrood')
				})
			},
			goOrder(){
				uni.navigateTo({
					url:('/pages/myReservoir/orderConfirmation')
				})
			},
			// 点击事件
			click(item) {
				
				this.current = item.index
					console.log('item', item,this.current);
			},
			// jlbDetail(){
			// 	uni.navigateTo({
			// 		url:('/pages/index/jlbDetail')
			// 	})
			// }
				
		}
	}
</script>

<style lang="scss">
	.pages{
		background-color: #f7f7f7;
	}
	.head{
		padding: 0 27rpx;
	}
	.timeSelect{
		width: 27rpx;
		height: 29rpx;
	}
	.dingdan{
		margin: 27rpx;
		background-color: #f7f7f7;	
	}
	.diaodian{
		background-color: #fff;
		margin: 20rpx 0;
		border-radius: 20rpx;
		padding-bottom: 20rpx;
	}
	.diaoyu{
		display: flex;
		justify-content: space-between;
		border-bottom: 1rpx solid #F7F7F7;
		
	}
	.le{
		margin: 36rpx 20rpx;
		display: flex;
		
	}
	.headPhoto{
		width: 67rpx;
		height: 67rpx;
		background: #2180F5;
		border-radius: 50%;
		margin-right: 10rpx;
	}
	.name{
		font-weight: 500;
		font-size: 24rpx;
		color: #333333;
		margin-top: 20rpx;
	}
	.state{
		font-weight: 500;
		font-size: 24rpx;
		color: #F31212;
		margin: 50rpx 27rpx 0 0;
	}
	
	.gn{
		display: flex;
		justify-content: space-around;
		>view{
			// width: 93rpx;
			// height: 23rpx;
			font-family: PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #333333;
			width: 147rpx;
			height: 47rpx;
			border-radius: 10rpx;
			border: 1px solid #E6E6E6;
			text-align: center;
			line-height: 47rpx;
		}
	}
	.buy{
		font-weight: 500;
		font-size: 24rpx;
		color: #999999;
		margin: 25rpx 27rpx;
	}
	.info{
		display: flex;
		justify-content: space-between;
	}
	.brood{
		font-weight: 500;
		font-size: 24rpx;
		color: #999999;
		margin: 25rpx 27rpx;
	}
</style>
